<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <div id="app">
        <!-- 循环遍历字符串 -->
        <li v-for="item in 'items'" >{{item}}</li>
        <hr>
        <!-- 遍历 -->
        <li v-for="item in user" >{{item}}</li>
        <hr>
        <!-- 遍历数字 -->
        <li v-for="item in 10" >{{item}}</li>
    </div>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.js"></script>
    <script>
        /* 创建vue实例 */
        var vm=new Vue({
            el:"#app",
            data:{
                msg:"你猜猜看",
                user:{
                    name:"刘帅-",
                    sex:"男",
                    hobby:"象棋"
                }
            }
        });
    </script>
    
</body>
</html>